/* 轮播图容器 */
.carousel-container {
  width: 100%;
  max-width: none;
  margin: 0;
  position: relative; /* 确保相对定位 */
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #20c997, #17a2b8); /* 青色渐变背景 */
  min-height: 350px; /* 减小高度 */
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 350px; /* 减小高度 */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 主要内容区域 */
.carousel-content-area {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  padding-bottom: 80px; /* 减小底部空间 */
}

.carousel-text-content {
  color: white;
  max-width: 600px;
  padding: 0 40px;
}

.carousel-title {
  margin: 0 0 16px 0;
  font-size: 36px; /* 稍微减小字体大小 */
  font-weight: 700;
  line-height: 1.2;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-description {
  margin: 0;
  font-size: 18px; /* 稍微减小字体大小 */
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

/* 左右箭头 */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  color: white;
  backdrop-filter: blur(10px);
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow-left {
  left: 24px;
}

.carousel-arrow-right {
  right: 24px;
}

/* 指示器 */
.carousel-indicators {
  position: absolute;
  bottom: 100px; /* 调整位置 */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
}

.carousel-indicator.active {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 1);
  transform: scale(1.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .carousel-container {
    min-height: 300px; /* 移动端更小的高度 */
  }

  .carousel-wrapper {
    height: 300px;
  }

  .carousel-content-area {
    padding-bottom: 70px; /* 移动端减少底部空间 */
  }

  .carousel-text-content {
    padding: 0 20px;
  }

  .carousel-title {
    font-size: 28px; /* 移动端更小的字体 */
    margin-bottom: 12px;
  }

  .carousel-description {
    font-size: 16px;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
  }

  .carousel-arrow-left {
    left: 16px;
  }

  .carousel-arrow-right {
    right: 16px;
  }

  .carousel-indicators {
    bottom: 85px; /* 移动端调整指示器位置 */
  }

  .carousel-indicator {
    width: 10px;
    height: 10px;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-text-content {
  animation: fadeIn 0.5s ease-out;
}

/* 悬停效果 */
.carousel-container:hover .carousel-arrow {
  opacity: 1;
}

.carousel-arrow {
  opacity: 0.8;
}

/* 加载状态 */
.carousel-image {
  transition: opacity 0.3s ease;
}

.carousel-image[src=""] {
  opacity: 0;
} 